package com.wind.controller;

import com.wind.entity.Jasypt;
import com.wind.service.JasyptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 控制层
 *
 * @author Windy
 * @date 2021-04-24
 */
@RestController
@RequestMapping("/")
public class JasyptController {

    @Autowired
    private JasyptService jasyptService;

    @GetMapping("/list")
    public List<Jasypt> getList() {
        return jasyptService.getList();
    }
}
